import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Atras here.
 * 
 * @author (Gerado Antonio Hernandez Garcia & Christian Israel Rodriguez Ahumada ) 
 * @version (a version number or a date)
 */
public class Atras extends Boton
{
    /**
     * Act - do whatever the Atras wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        super.act();
    }
    /**
     * METODO QUE REGRESA AL MENU
     */
    public void funciona()
    {
        Nivel1 world;
        world=(Nivel1)super.getWorld();
        world.eliminaObjetos();
        world.introPlay();
        world.reseteaNivel();
        world.prepare(0);
        
        
    }

}
